<?php



class OrdersProductsDownloadMapBuilder {

	
	const CLASS_NAME = 'lib.model.map.OrdersProductsDownloadMapBuilder';

	
	private $dbMap;

	
	public function isBuilt()
	{
		return ($this->dbMap !== null);
	}

	
	public function getDatabaseMap()
	{
		return $this->dbMap;
	}

	
	public function doBuild()
	{
		$this->dbMap = Propel::getDatabaseMap('propel');

		$tMap = $this->dbMap->addTable('orders_products_download');
		$tMap->setPhpName('OrdersProductsDownload');

		$tMap->setUseIdGenerator(true);

		$tMap->addPrimaryKey('ORDERS_PRODUCTS_DOWNLOAD_ID', 'OrdersProductsDownloadId', 'int', CreoleTypes::INTEGER, true, null);

		$tMap->addColumn('ORDERS_ID', 'OrdersId', 'int', CreoleTypes::INTEGER, true, null);

		$tMap->addColumn('ORDERS_PRODUCTS_ID', 'OrdersProductsId', 'int', CreoleTypes::INTEGER, true, null);

		$tMap->addColumn('ORDERS_PRODUCTS_FILENAME', 'OrdersProductsFilename', 'string', CreoleTypes::VARCHAR, true, 255);

		$tMap->addColumn('DOWNLOAD_MAXDAYS', 'DownloadMaxdays', 'int', CreoleTypes::INTEGER, true, null);

		$tMap->addColumn('DOWNLOAD_COUNT', 'DownloadCount', 'int', CreoleTypes::INTEGER, true, null);

	} 
} 